<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}树莓派继电器控制{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <header>
            <h1>树莓派继电器控制系统</h1>
            <div class="mode-indicator {{ 'hardware' if system_info.mode == 'hardware' else 'simulation' }}">
                当前模式: {{ '真实硬件' if system_info.mode == 'hardware' else '模拟模式' }} (第二步: 单继电器控制)
            </div>
        </header>
        
        <main>
            {% block content %}{% endblock %}
        </main>
        
        <footer>
            <p>开发进度: 第二步 - 单继电器控制 ✅ | 下一步: 多继电器控制</p>
        </footer>
    </div>
    
    <script src="{{ url_for('static', filename='js/main.js') }}"></script>
</body>
</html>